﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using Meqs.Entity;

namespace Meqs.Logic.Interface
{
    public interface IQuestionTypesLogic : IMultiCommonLogic<QuestionTypes, int>
    {
        bool DeleteQuestionsByReqClsId(int reqClsId, String schoolMark);

        /// <summary>
        /// 添加一个题目类别
        /// </summary>
        int AddReqCls(QuestionTypes obj, String schoolMark);

        /// <summary>
        /// 大题排序
        /// </summary>
        int SortReqCls(int stId, Hashtable ht, String schoolMark);

        bool CopyReqClsToNewTable(int destStid, int reqClsId, String schoolMark);

        /// <summary>
        /// 插入题目类别
        /// </summary>
        int CreateQuestionTypes(QuestionTypes questionType, string schoolMark);

        /// <summary>
        /// 更新题目类别
        /// </summary>
        int UpdateQuestionTypes(QuestionTypes questionType, string schoolMark);

        /// <summary>
        /// 获取题类
        /// </summary>
        /// <param name="templateId"></param>
        /// <param name="schoolMark"></param>
        /// <returns></returns>
        IList<QuestionTypeExtends> GetQtList(int templateId, string schoolMark);
    }
}
